// 开启宝箱状态监听
exports.onOpenChestChange = function (app, data, session, cb) {
    app.get('channelService').pushMessageByUids('onOpenChestChange', data, [{
        uid: session.get('uid'),
        sid: session.frontendId
    }], null, cb);
};

// 可领取红包状态监听
exports.onRedPacketChange = function (app, data, session, cb) {
    app.get('channelService').pushMessageByUids('onRedPacketChange', data, [{
        uid: session.get('uid'),
        sid: session.frontendId
    }], null, cb);
};

// 可领取红包状态监听
exports.onRedPacketChange2 = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onRedPacketChange', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
};

// 领取红包后推送下一等级红包状态
exports.onRedPacketReceive = function (app, data, session, cb) {
    app.get('channelService').pushMessageByUids('onRedPacketReceive', data, [{
        uid: session.get('uid'),
        sid: session.frontendId
    }], null, cb);
};

// 增加金币监听
// exports.onCoinsAdd = function (app, data, session, cb) {
//     app.get('channelService').pushMessageByUids('onCoinsAdd', data, [{
//         uid: session.get('uid'),
//         sid: session.frontendId
//     }], null, cb);
// };

// 增加宝石监听
exports.onJewelAdd = function (app, data, session, cb) {
    app.get('channelService').pushMessageByUids('onJewelAdd', data, [{
        uid: session.get('uid'),
        sid: session.frontendId
    }], null, cb);
};

// 徒弟数增加监听
exports.onApprenticeAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onApprenticeAdd', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
};

// 徒孙数增加监听
exports.onDiscipleAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onDiscipleAdd', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
};

//金钱增加推送
exports.onMoneyAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onMoneyAdd', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
};

//金钱减少推送
exports.onMoneyReduce = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onMoneyReduce', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

exports.onIncomeAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onIncomeAdd', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
};

//石油增加监听
exports.onOilAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onOilAdd', data, [{
        uid: uid,
        sid: frontendId,
    }], null, cb);
}

//精华石油监听
exports.onEssenceOilAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onEssenceOilAdd', data, [{
        uid: uid,
        sid: frontendId,
    }], null, cb);
}

//石油减少监听
exports.onOilReduce = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onOilReduce', data, [{
        uid: uid,
        sid: frontendId,
    }], null, cb);
}

// 增加金币监听
exports.onCoinsAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('s2c_coins_add', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

// 减少金币监听
exports.onCoinsReduce = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('s2c_coins_reduce', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

//增加视频监听
exports.onVideoAdd = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('onVideoAdd', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

//监听双倍奖励关闭
exports.onDoubleRewardClose = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('s2c_double_reward_close', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

//监听双倍奖励开启
exports.onDoubleRewardOpen = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('s2c_double_reward_open', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}

//秒产金量变化提示
exports.onProductChange = function (app, data, uid, frontendId, cb) {
    app.get('channelService').pushMessageByUids('s2c_product_change', data, [{
        uid: uid,
        sid: frontendId
    }], null, cb);
}